import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class 简写单词 {
    public static void main(String[] args) {
        Object System;
        Scanner scan = new Scanner(System.in);
        String words = scan.nextLine().toUpperCase();

        System.out.print(words.charAt(0));
        for(int i = 1;i < words.length();i ++){
            if(!Character.isLetter(words.charAt(i - 1))){
                System.out.print(words.charAt(i));
            }
        }
    }
}